//package com.example.demo.service;
//
//import com.example.demo.model.Restaurant;
//import com.example.demo.repository.RestaurantRepository;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//@Service
//public class RestaurantServiceImpl implements RestaurantService {
//
//    @Autowired
//    private RestaurantRepository restaurantRepository;
//
//    @Override
//    public Restaurant getLocation() {
//        return restaurantRepository.findById("1")
//                .orElseThrow(() -> new RuntimeException("Restaurant not found"));
//    }
//
//    @Override
//    public String getMapConfig() {
//        return "{ \"mapProvider\": \"BaiduMap\", \"apiKey\": \"your_api_key\" }";
//    }
//
//    @Override
//    public String getNavigationConfig() {
//        return "{ \"navigationProvider\": \"BaiduNavigation\", \"apiKey\": \"your_api_key\" }";
//    }
//}